CreateBank
CreateBank BankIndex, Size
 
Parameters:

    BankIndex = The Index Identifier of the bank that you wish to create.
    Size = The size in bytes of this memory bank
Returns: NONE
 

      CreateBank will allocate a memory bank of the users required size, ready for use. Memory banks are general purpose storage areas. You can store any type of information you like within them, ranging from text, numbers and binary information. They're generally used when you need to deal with raw data files.




FACTS:


     * When the Bank is created the allocated raw section memory it contains is cleared to zero.




Mini Tutorial:


     Create a bank and display it's status and size.

  
  
; Create Memory Bank #1 and make it 1000 bytes in size
  CreateBank 1,1000
  
; Display the status of this bank
  Print "Bank Satus:"+Str$(GetBankStatus(1))
  Print "Bank Size:"+Str$(GetBankSize(1))
  
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  




This example would output.

  
  Bank Status: 1
  Bank Size: 1000
  

 
Related Info: DeleteBank | GetBankSize | GetFreeBank | NewBank | PeekBankByte | PeekBankFloat | PeekBankInt | PeekBankString | PeekBankWord | POinter | PokeBankByte | PokeBankFloat | PokeBankInt | PokeBankString :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com